MPHB\Translation A

Total Complexity 68
Dependencies 6
Dependents 1
Total lines 553
Lines of code 253
Logical lines of code 141
Comment lines 197
Methods 37
Properties 3

Methods 37

Method Rating Maintainability Complexity Lines of code
wpmlCopyPostMeta()
S
53 5 24
getRestoreLanguage()
S
60 4 13
translateString()
S
62 4 12
setWPMLDefaultLanguage()
S
59 3 15
changeLanguageForCustomerEmail()
S
62 3 12
improveWMPLCompability()
S
55 2 19
translateRoomType()
S
66 3 8
setLocaleForEmails()
S
71 3 6
getAllTranslationIds()
S
61 2 11
translateAttributes()
S
66 2 8
switchLanguage()
S
71 2 6
resetWPMLStoredLanguage()
S
71 2 6
translateService()
S
71 2 5
isOriginalId()
S
74 2 4
translateId()
S
70 2 6
translateReservedService()
S
63 2 10
resetLanguageAfterEmail()
S
70 2 7
changeLanguageForAdminEmail()
S
66 2 9
registerWPMLString()
S
70 2 6
isTranslationPage()
S
78 2 3
getTaxTranslationIds()
S
78 1 3
isActiveWPML()
S
80 1 3
isTranslatablePostType()
S
78 1 3
getPostTranslationIds()
S
78 1 3
__construct()
S
71 1 5
getCurrentId()
S
78 1 3
getOriginalId()
S
78 1 3
getDefaultLanguage()
S
79 1 3
getWPLanguage()
S
75 1 4
getCurrentLanguage()
S
79 1 3
wpmlTranslatePageId()
S
79 1 3
restoreLanguage()
S
81 1 3
setupAllLanguages()
S
76 1 4
setupDefaultLanguage()
S
76 1 4
isActiveLanguage()
S
79 1 3
updateTextdomains()
S
64 1 10
wpmlTranslatePostId()
S
79 1 3